﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebFormsSample
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        public string LoggedServerMessage
        {
            get { return lblLoggedServerMessage.Text; }
            set { lblLoggedServerMessage.Text = value; }
        }

        public string LoggedClientMessage
        {
            get { return lblLoggedClientMessage.Text; }
            set { lblLoggedClientMessage.Text = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void NavigationMenu_MenuItemDataBound(object sender, MenuEventArgs e)
        {
            SiteMapNode node = (SiteMapNode)e.Item.DataItem;

            if (!string.IsNullOrWhiteSpace(node["target"]))
                e.Item.Target = node["target"];
        }
    }
}
